{extend name="public/common"} {block name="body"}

<div class="cl pd-5 bg-1 bk-gray mt-20"> 
  <span class="l" style="margin-left:15px;"><a style="" href="/admin/Operate/bonusNumAdd" class="btn btn-primary radius">新增满送抢红包次数 </a></span>
</div>

<div class="page-container">
  <div id="tab-system" class="HuiTab">
      <div class="mt-20">
        <table
          class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
          <thead>
            <tr class="text-c">
              <th>ID</th>
              <th>存款金额</th>
              <th>抽奖次数</th>
              <th>操作</th>
            </tr>
          
          </thead>
          <tbody>
            {volist name="list" id="DL"}
          
			<tr class="text-c">
			  <td>{$DL.id}</td>
			  <td>{$DL.saving}</td>
			  <td>{$DL.num}</td>
			  <td>
			  	<a href='/admin/Operate/bonusNumEdit?id={$DL.id}' title="修改"><i class="Hui-iconfont">&#xe6df;</i></a>&nbsp;&nbsp;&nbsp;
			  	<a href='javascript:void(0);' onclick='delUserClass({$DL.id})' title="删除"><i class="Hui-iconfont">&#xe609;</i></a>
			  </td>
			     {/volist}
			</tr>

          </tbody>
        </table>
      </div>
  </div>
</div>

{/block}

{block name="js"} 
<script type="text/javascript">

function delUserClass(id){
	//删除用户等级
	layer.confirm('确认删除该条吗？', {
		  btn: ['确认','取消'] //按钮
		}, function(){
		  location.href='/admin/Operate/bonusNumDel?type={:input("get.type")}&id='+id
		});
}

</script>
{/block}
 
